<%@page import="tx.bjdacp.model.*" %>
<%@ page contentType="application/msexcel;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec"%>

<%@ taglib uri="http://www.rapid-framework.org.cn/rapid" prefix="rapid" %>
<%
   response.setHeader("Content-disposition","attachment; filename=data.xls");
%>


		<table width="100%"  border="0" cellspacing="0" >
		  <thead>

			  <tr>

				<!-- 排序时为th增加sortColumn即可,new SimpleTable('sortColumns')会为tableHeader自动增加排序功能; -->
				<th sortColumn="accept_date" ><%=DrugSellUnitPrepare.ALIAS_ACCEPT_DATE%></th>
				<th sortColumn="apply_person" ><%=DrugSellUnitPrepare.ALIAS_APPLY_PERSON%></th>
				<th sortColumn="accept_code" ><%=DrugSellUnitPrepare.ALIAS_ACCEPT_CODE%></th>
				<th sortColumn="zone_name" ><%=DrugSellUnitPrepare.ALIAS_ZONE_NAME%></th>
				<th sortColumn="apply_address" ><%=DrugSellUnitPrepare.ALIAS_APPLY_ADDRESS%></th>
				<th sortColumn="measure_result" ><%=DrugSellUnitPrepare.ALIAS_MEASURE_RESULT%></th>
				<th sortColumn="measure_date" ><%=DrugSellUnitPrepare.ALIAS_MEASURE_DATE%></th>
				<th sortColumn="time_limit" ><%=DrugSellUnitPrepare.ALIAS_TIME_LIMIT%></th>
				<th sortColumn="phone" ><%=DrugSellUnitPrepare.ALIAS_PHONE%></th>
				<th sortColumn="accredited_person" ><%=DrugSellUnitPrepare.ALIAS_ACCREDITED_PERSON%></th>
				<th sortColumn="remark" ><%=DrugSellUnitPrepare.ALIAS_REMARK%></th>

			  </tr>

		  </thead>
		  <tbody>
		  	  <c:forEach items="${page.result}" var="item" varStatus="status">

			  <tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">

				<td><c:out value='${item.acceptDateString}'/>&nbsp;</td>
				<td><c:out value='${item.applyPerson}'/>&nbsp;</td>
				<td><c:out value='${item.acceptCode}'/>&nbsp;</td>
				<td><c:out value='${item.zoneName}'/>&nbsp;</td>
				<td><c:out value='${item.applyAddress}'/>&nbsp;</td>
				<td><c:out value='${item.measureResult}'/>&nbsp;</td>
				<td><c:out value='${item.measureDateString}'/>&nbsp;</td>
				<td><c:out value='${item.timeLimit}'/>&nbsp;</td>
				<td><c:out value='${item.phone}'/>&nbsp;</td>
				<td><c:out value='${item.accreditedPerson}'/>&nbsp;</td>
				<td><c:out value='${item.remark}'/>&nbsp;</td>

			  </tr>

		  	  </c:forEach>
		  </tbody>
		</table>


